package cn.iocoder.yudao.module.security.controller.admin.whitelistevent.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 白名单事件 Response VO")
@Data
@ExcelIgnoreUnannotated
public class WhitelistEventRespVO {

    @Schema(description = "资产ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "3048")
    @ExcelProperty("资产ID")
    private Long id;

    @Schema(description = "源IP")
    @ExcelProperty("源IP")
    private String sourceIp;

    @Schema(description = "源端口")
    @ExcelProperty("源端口")
    private Integer sourcePort;

    @Schema(description = "目的IP")
    @ExcelProperty("目的IP")
    private String destinationIp;

    @Schema(description = "目的端口")
    @ExcelProperty("目的端口")
    private Integer destinationPort;

    @Schema(description = "协议")
    @ExcelProperty("协议")
    private String protocol;

    @Schema(description = "发生时间")
    @ExcelProperty("发生时间")
    private LocalDateTime eventTime;

    @Schema(description = "功能码")
    @ExcelProperty("功能码")
    private Integer functionCode;

    @Schema(description = "功能码中文")
    @ExcelProperty("功能码中文")
    private String functionCodeCn;

    @Schema(description = "消息类型", example = "1")
    @ExcelProperty("消息类型")
    private Integer msgType;

    @Schema(description = "寄存器区")
    @ExcelProperty("寄存器区")
    private Integer registerArea;

    @Schema(description = "DB区")
    @ExcelProperty("DB区")
    private Integer dbArea;

    @Schema(description = "点类型", example = "1")
    @ExcelProperty("点类型")
    private Integer pointType;

    @Schema(description = "对象组号")
    @ExcelProperty("对象组号")
    private Integer objectGroupNum;

    @Schema(description = "变体号")
    @ExcelProperty("变体号")
    private Integer variantNum;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("状态（0正常 1停用）")
    private Integer status;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}